<template>
  <div class="containers">
    <div class="float-img"></div>
    <div class="main">
      <!-- 视频列表 -->
      <div class="video-boxshow-">
        <div class="box-tab">
          <div class="list-box">
            <ul>
              <li>
                <div
                  class="video-boxshow--dom"
                  v-on:click="openVideo(theurl,0,0,0)"
                  :data-id="theurl"
                >
                  <div class="video-dom">
                    <video
                      :poster="fengmian || null"
                      :src="theurl || null"
                      x5-video-player-fullscreen="true"
                      webkit-playsinline
                      preload="auto"
                    ></video>
                    <div class="video-cover">
                      <img
                        class="video-play"
                        src="http://sucai.suoluomei.cn/sucai_zs/images/20190226112454-play.png"
                      >
                    </div>
                  </div>
                </div>
              </li>
            </ul>
          </div>
        </div>
      </div>
      <!-- 全屏视频展示 -->
      <div class="video-list" v-if="fullPlayVideo">
        <ul>
          <li>
            <video
              alt
              :src="bigVideo"
              id="media"
              loop
              @click="pauseVideo"
              x5-video-player-type="h5"
              x5-video-player-fullscreen="true"
              webkit-playsinline
              playsinline
              controls="controls"
            ></video>
            <!-- 播放视频 -->
            <img
              src="http://sucai.suoluomei.cn/sucai_zs/images/20190226112454-play.png"
              class="play"
              @click="playVideo"
              v-if="showPlayIcon"
              alt
            >
            <!-- 关闭全屏 -->
            <img
              src="http://sucai.suoluomei.cn/sucai_zs/images/20190222120247-close.png"
              class="close"
              @click="closeFullVideo"
              alt
            >
            <!-- 功能区 -->
            <div class="tool" v-if="false">
              <div class="vote" @click="fabulous">
                <img
                  src="http://sucai.suoluomei.cn/sucai_zs/images/20190226112454-vote.png"
                  alt
                  v-if="hasvote"
                >
                <img
                  src="http://sucai.suoluomei.cn/sucai_zs/images/20190226112454-no-vote.png"
                  alt
                  v-else
                >
              </div>
              <div class="share">
                <img
                  src="http://sucai.suoluomei.cn/sucai_zs/images/20190226112454-share.png"
                  alt
                  @click="share"
                >
              </div>
            </div>
          </li>
        </ul>
      </div>
    </div>
    <div class="loding" v-if="loding">
      <van-loading color="#f44"/>
    </div>
  </div>
</template>

<script>
  import { Toast, Notify, Dialog } from 'vant'
  export default {
    name: 'Video',
    props: ['theurl', 'fengmian', 'buyorno', 'freeorno'],
    data() {
      return {
        proValue: 'Index',
        total: '',
        voteTotal: '',
        log: '',

        bigVideo: '',
        fullPlayVideo: false,
        showPlayIcon: false,
        hasvote: false,
        listType: 0,
        listTabs: [{ name: '最新参赛' }, { name: '投票排名' }],
        sorttype: 1,
        page: 1,
        pageNumNew: 1,
        AllPage: 2,
        showDrawBox: '',
        recordBoxType: 1,
        runDraw: '',
        loding: false,
        vipid: '',
        addressId: '',
        Votes: '0',
        recordBoxTypeTip: '您与奖品擦肩而过~',
        waringAlert: false,
        isDisabled: false,
        prizeitems: [],
        popupShow: false,
        FabulousIsDisable: 0,
        popList: false,
        baseImg:
          'http://sucai.suoluomei.cn/sucai_zs/images/20190409161502-pop_03.png', // 弹窗背景图
        rowArr: [],
      }
    },
    computed: {
      isBuy() {
        return this.buyorno
      },
      isFree() {
        return this.freeorno
      },
    },
    activated() {
      this.fullPlayVideo = false
      this.showPlayIcon = false
    },
    methods: {
      // 点击连续关闭弹窗
      popCloseList(index) {
        let that = this
        that.rowArr[index].is_show = 1
        let count = 0
        for (let i in that.rowArr) {
          if (that.rowArr[i].is_show == 1) {
            count++
          }
        }
        if (count == that.rowArr.length) {
          that.popList = false
        }
      },

      // 跳转进来看视频
      // async createSign (candidates_id) {
      //   var res = await createSign(candidates_id)
      //   if (res.errcode == 0) {
      //     this.bigVideo = res.data.candidates_info[0].before_image
      //     this.Votes = res.data.candidates_info[0].vote_num
      //     this.vipid = res.data.candidates_info[0].id
      //     this.addressId = res.data.candidates_info[0].division_id
      //     this.fullPlayVideo = true
      //     this.ShowlVideoBox = true
      //     this.showPlayIcon = true
      //     setTimeout(() => {
      //       this.pauseVideo()
      //     }, 1)
      //   } else {
      //     Notify(res.msg)
      //   }
      // },

      // 点击展开全屏
      openVideo(videoUrl, id, addressId, Votes) {
        if (this.isBuy == 1 || this.isFree == 1) {
          this.Votes = Votes
          this.addressId = addressId
          this.vipid = id
          this.bigVideo = videoUrl
          this.showPlayIcon = true
          this.fullPlayVideo = true
          setTimeout(() => {
            this.playVideo()
          }, 1)
        } else {
          this.$emit('listerson')
          return false
        }
      },
      // 关闭全屏
      closeFullVideo() {
        this.fullPlayVideo = false
      },
      // 关闭展示视频
      closeShowlVideo() {
        this.ShowlVideoBox = false
      },
      // 点赞
      fabulous() {
        if (this.FabulousIsDisable == 0) {
          this.FabulousIsDisable = 1
          this.judgeUserIsRegistered()
          setTimeout(() => {
            this.FabulousIsDisable = 0
          }, 5000)
        } else {
          Notify('请勿重复点击')
        }
      },
      // 转发
      share() {
        this.$router.push({ path: '/poster', query: { vipId: this.vipid } })
      },
      // 点击视频暂停
      pauseVideo(event) {
        this.showPlayIcon = true
        event && event.target && event.target.pause()
      },
      // 点击暂停icon播放
      playVideo() {
        this.showPlayIcon = false
        var fullVideo = document.getElementById('media')
        fullVideo.play()
      },

      // 开启弹窗
      openRecordShow(type, BoxType) {
        if (type) {
          this.showDrawBox = type
        }
        if (BoxType == 1) {
          this.recordBoxType = BoxType
          this.BeautifulactionDrawPrizeLog()
        }
      },
      // 关闭弹窗
      closeDrawBox() {
        this.showDrawBox = ''
      },
      // 开始抽奖
      Draw() {
        this.BeautifulactionDrawPrize(this.vipid)
        this.isDisabled = true
      },
      // 监听页面触底
      handleScroll() {
        // 变量scrollTop是滚动条滚动时，距离顶部的距离
        var scrollTop =
          document.documentElement.scrollTop || document.body.scrollTop
        // 变量windowHeight是可视区的高度
        var windowHeight =
          document.documentElement.clientHeight || document.body.clientHeight
        // 变量scrollHeight是滚动条的总高度
        var scrollHeight =
          document.documentElement.scrollHeight || document.body.scrollHeight
        // 滚动条到底部的条件
        if (scrollTop + windowHeight == scrollHeight) {
          if (this.pageNumNew < this.AllPage) {
            this.loding = true
            this.pageNumNew++
            this.SelectCandidatesData(this.sorttype, this.pageNumNew, 1)
          }
        }
      },
    },
  }
</script>

<style lang="less" scoped>
  .pop {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .pop,
  .popBg {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 2;
    .popBg {
      background: rgba(0, 0, 0, 0.7);
      z-index: 3;
    }
    .popBox {
      width: 70%;
      z-index: 5;
      position: relative;
      img {
        width: 100%;
      }
      .close {
        width: 40px;
        height: 40px;
        position: absolute;
        left: calc(50% - 20px);
        bottom: -15%;
        z-index: 5;
        img {
          width: 100%;
          height: 100%;
        }
      }
      .popMain {
        width: 90%;
        height: 75%;
        position: absolute;
        top: 20%;
        left: 5%;
        .popText {
          width: 100%;
          margin: 0 auto;
          color: #ffffff;
          font-size: 12px;
          text-align: center;
          div {
            padding: 2px 0;
            box-sizing: border-box;
          }
        }
        .pop_list {
          width: 100%;
          height: 62%;
          text-align: center;
          color: #ffffff;
          font-size: 14px;
          display: flex;
          justify-content: center;
          align-items: center;
        }
        .popImgbox {
          width: 100%;
          height: 62%;
          display: flex;
          justify-content: center;
          align-items: center;
          .popadd::before {
            content: '';
            width: 18px;
            height: 18px;
            background: url(http://sucai.suoluomei.cn/sucai_zs/images/20190409162647-add_03.png)
              no-repeat;
            background-size: 100% 100%;
            position: absolute;
            right: -9px;
            top: 50%;
          }
          .popImg {
            width: 50%;
            position: relative;
            .img {
              width: 80px;
              height: 100px;
              padding: 10px;
              background: #ffffff;
              box-sizing: border-box;
              margin: 0 auto;
              img {
                width: 100%;
                height: 100%;
              }
            }
          }
        }
        .furl_gift {
          width: 50%;
          position: absolute;
          z-index: 10;
          bottom: 8%;
          left: 25%;
          background: #ffffff;
          color: rgb(213, 64, 161);
          text-align: center;
          padding: 4px 0;
          box-sizing: border-box;
          border-radius: 25px;
        }
        .bg {
          background: #999999;
          color: #ffffff;
        }
      }
    }
    .popCon {
      width: 100%;
      height: 100%;
      position: relative;
      .popBox {
        position: absolute;
        top: 20%;
        left: 15%;
      }
    }
  }
  .containers {
    width: 100%;
    background-color: #f1f1f1;
    .float-img {
      position: fixed;
      bottom: 5rem;
      right: 0.5rem;
      z-index: 500;
      img {
        width: 5rem;
      }
    }
    .main {
      background-color: #f1f1f1;
      .poster {
        position: relative;
        width: 100%;
        background-color: #fff;
        .rules {
          display: -webkit-inline-flex;
          display: inline-flex;
          align-items: center;
          position: absolute;
          top: 0;
          right: 0;
          padding: 0.1rem 0.8rem;
          background-image: url('http://sucai.suoluomei.cn/sucai_zs/images/20190226093613-border.png');
          background-size: 100% 100%;
          background-position: center;
          background-repeat: no-repeat;
          font-size: 0.6rem;
          color: #fff;
        }
        .activity-rules {
          top: 1rem;
        }
        .send-ticket-rules {
          top: 3rem;
        }
        .first-hf {
          top: 5rem;
        }
        img {
          display: block;
          width: 100%;
        }
        .data-search {
          width: 100%;
          height: 8rem;
          .data-list {
            display: -webkit-inline-flex;
            display: inline-flex;
            align-items: center;
            width: 100%;
            height: 60%;
            ul {
              display: -webkit-inline-flex;
              display: inline-flex;
              width: 100%;
              li {
                width: 33.33%;
                text-align: center;
                p {
                  padding: 0.2rem 0;
                  width: 100%;
                  color: #777;
                  font-size: 0.6rem;
                  font-weight: 500;
                  span {
                    color: #333;
                    font-size: 1.1rem;
                  }
                }
              }
              li:nth-of-type(2) {
                border-left: #ff6666 1px solid;
                border-right: #ff6666 1px solid;
              }
            }
          }
          .search {
            position: relative;
            display: -webkit-inline-flex;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            -webkit-justify-content: center;
            width: 100%;
            height: 40%;
            img {
              position: absolute;
              right: 10%;
              top: 50%;
              margin-top: -0.7rem;
              width: 1.4rem;
              height: 1.4rem;
            }
            input {
              width: 90%;
              height: 70%;
              border: 1px solid #ff6666;
              border-radius: 50rem;
              text-align: center;
              outline: none;
            }
          }
        }
      }
      .video-boxshow- {
        margin-top: 1rem;
        background-color: #fff;
        .box-tab {
          width: 100%;
          .list-box {
            width: 100%;
            background: #e6e6e6;
          }
        }
        ul {
          display: -webkit-inline-flex;
          display: inline-flex;
          -ms-flex-wrap: wrap;
          flex-wrap: wrap;
          margin-top: 1rem;
          width: 100%;
          li {
            position: relative;
            width: 100%;
            height: 15rem;
            overflow: hidden;
            .video-boxshow--dom {
              position: relative;
              width: 100%;
              height: 100%;

              .video-dom {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 100%;
                overflow: hidden;
                video {
                  width: 100%;
                  height: 100%;
                  object-fit: cover;
                }
                .video-cover {
                  position: absolute;
                  top: 0;
                  left: 0;
                  right: 0;
                  height: 100%;
                  z-index: 10;
                  .video-play {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    width: 3rem;
                    height: 3rem;
                    z-index: 11;
                  }
                }
              }
              .contestant {
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                display: -webkit-inline-flex;
                display: inline-flex;
                justify-content: space-between;
                -webkie-justify-content: space-between;
                align-items: center;
                -webkie-align-items: center;
                -ms-flex-wrap: wrap;
                flex-wrap: wrap;
                height: 20%;
                span {
                  margin-left: 0.5rem;
                  padding: 0 0.2rem;
                  font-size: 0.7rem;
                  border-radius: 0.2rem;
                  border: 1px solid #ff6666;
                  color: #777777;
                }
                a {
                  margin-right: 0.5rem;
                  font-size: 0.8rem;
                  color: #333;
                }
                .address-num {
                  display: -webkit-inline-flex;
                  display: inline-flex;
                  justify-content: space-between;
                  -webkie-justify-content: space-between;
                  align-items: center;
                  -webkie-align-items: center;
                  padding-right: 0.5rem;
                  width: 100%;
                  text-align: right;
                  p {
                    font-size: 0.6rem;
                  }
                  p:nth-of-type(1) {
                    margin-left: 0.5rem;
                  }
                  b {
                    color: #ff4e4e;
                    font-size: 0.8rem;
                  }
                }
              }
            }
          }
        }
      }
      .video-list {
        z-index: 999;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2001;
        overflow: scroll;
        background-color: #000;
        ul {
          width: 100%;
          height: 100%;
          li {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
            display: -webkit-flex;
            display: flex;
            justify-content: center;
            -webkie-justify-content: center;
            align-items: center;
            -webkie-align-items: center;
            video {
              width: 100%;
              object-fit: cover;
            }
            .play {
              position: absolute;
              top: calc(50% - 2rem);
              left: calc(50% - 2rem);
              width: 4rem;
              height: 4rem;
            }
            .close {
              position: absolute;
              top: 2rem;
              left: 2rem;
              width: 2rem;
              height: 2rem;
            }
            .tool {
              display: -webkit-flex;
              display: flex;
              justify-content: center;
              -webkie-justify-content: center;
              align-items: center;
              -webkie-align-items: center;
              flex-wrap: wrap;
              -ms-flex-wrap: wrap;
              position: absolute;
              top: 50%;
              right: 0.5rem;
              width: 4rem;
              z-index: 1001;
              .vote {
                display: -webkit-flex;
                display: flex;
                justify-content: center;
                -webkie-justify-content: center;
                align-items: center;
                -webkie-align-items: center;
                flex-wrap: wrap;
                -ms-flex-wrap: wrap;
                width: 100%;
                img {
                  width: 1.5rem;
                  height: 1.5rem;
                }
                p {
                  padding: 0.2rem 0;
                  width: 100%;
                  text-align: center;
                  color: #fff;
                  font-size: 0.8rem;
                }
              }
              .share {
                display: -webkit-flex;
                display: flex;
                justify-content: center;
                -webkie-justify-content: center;
                align-items: center;
                -webkie-align-items: center;
                flex-wrap: wrap;
                -ms-flex-wrap: wrap;
                margin-top: 1.5rem;
                width: 100%;
                img {
                  width: 1.5rem;
                  height: 1.5rem;
                }
              }
            }
          }
        }
      }
      .luck-draw {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 5000;
        .box-dark {
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          height: 100%;
          background: rgba(0, 0, 0, 0.6);
          z-index: -1;
        }
        .luck-draw-box {
          position: relative;
          width: 100%;
          height: 100%;
          .fireworks {
            position: absolute;
            top: 5rem;
            left: 0;
            right: 0;
            z-index: 2;
            img {
              width: 100%;
            }
          }
          .luck-draw-bg {
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: -11rem;
            margin-left: -9rem;
            width: 18rem;
            height: 22rem;
            background: url('http://sucai.suoluomei.cn/sucai_zs/images/20190226134702-luck-draw-bg.png');
            background-origin: center;
            background-size: 100% 100%;
            background-repeat: no-repeat;
            z-index: 1;
          }
          .luck-draw-con {
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: -11rem;
            margin-left: -9rem;
            width: 18rem;
            height: 22rem;
            z-index: 3;
            .draw-list {
              position: absolute;
              top: 1rem;
              left: 1rem;
              font-size: 0.9rem;
              color: #fff;
              z-index: 2000;
            }
            .box-close {
              position: absolute;
              top: 1rem;
              right: 1rem;
              width: 1rem;
              height: 1rem;
              z-index: 3;
            }
            .turntable {
              position: absolute;
              top: 50%;
              left: 50%;
              margin-left: -8rem;
              margin-top: -8rem;
              width: 16rem;
              height: 16rem;
              .turntable-img {
                position: absolute;
                top: 0;
                left: 0;
                z-index: 1;
                width: 100%;
              }
              .turntable-point {
                position: absolute;
                top: 50%;
                left: 50%;
                margin-left: -4rem;
                margin-top: -4.4rem;
                z-index: 2;
                width: 8rem;
                height: 8.8rem;
                background-color: transparent;
                border: 0;
                img {
                  width: 100%;
                  height: 100%;
                }
              }
              // 旋转角度
              .run9 {
                transform: rotate(3583deg);
                -webkit-transform: rotate(3583deg);
                -moz-transform: rotate(3583deg);
                -o-transform: rotate(3583deg);
                -ms-transform: rotate(3583deg);
                transition: all 5s;
              }
              .run8 {
                transform: rotate(3555deg);
                -webkit-transform: rotate(3555deg);
                -moz-transform: rotate(3555deg);
                -o-transform: rotate(3555deg);
                -ms-transform: rotate(3555deg);
                transition: all 5s;
              }
              .run3 {
                transform: rotate(3525deg);
                -webkit-transform: rotate(3525deg);
                -moz-transform: rotate(3525deg);
                -o-transform: rotate(3525deg);
                -ms-transform: rotate(3525deg);
                transition: all 5s;
              }
              .run7 {
                transform: rotate(3495deg);
                -webkit-transform: rotate(3495deg);
                -moz-transform: rotate(3495deg);
                -o-transform: rotate(3495deg);
                -ms-transform: rotate(3495deg);
                transition: all 5s;
              }
              .run5 {
                transform: rotate(3465deg);
                -webkit-transform: rotate(3465deg);
                -moz-transform: rotate(3465deg);
                -o-transform: rotate(3465deg);
                -ms-transform: rotate(3465deg);
                transition: all 5s;
              }
              .run12 {
                transform: rotate(3435deg);
                -webkit-transform: rotate(3435deg);
                -moz-transform: rotate(3435deg);
                -o-transform: rotate(3435deg);
                -ms-transform: rotate(3435deg);
                transition: all 5s;
              }
              .run6 {
                transform: rotate(3405deg);
                -webkit-transform: rotate(3405deg);
                -moz-transform: rotate(3405deg);
                -o-transform: rotate(3405deg);
                -ms-transform: rotate(3405deg);
                transition: all 5s;
              }
              .run10 {
                transform: rotate(3375deg);
                -webkit-transform: rotate(3375deg);
                -moz-transform: rotate(3375deg);
                -o-transform: rotate(3375deg);
                -ms-transform: rotate(3375deg);
                transition: all 5s;
              }
              .run13 {
                transform: rotate(3345deg);
                -webkit-transform: rotate(3345deg);
                -moz-transform: rotate(3345deg);
                -o-transform: rotate(3345deg);
                -ms-transform: rotate(3345deg);
                transition: all 5s;
              }
              .run2 {
                transform: rotate(3315deg);
                -webkit-transform: rotate(3315deg);
                -moz-transform: rotate(3315deg);
                -o-transform: rotate(3315deg);
                -ms-transform: rotate(3315deg);
                transition: all 5s;
              }
              .run11 {
                transform: rotate(3285deg);
                -webkit-transform: rotate(3285deg);
                -moz-transform: rotate(3285deg);
                -o-transform: rotate(3285deg);
                -ms-transform: rotate(3285deg);
                transition: all 5s;
              }
              .run4 {
                transform: rotate(3255deg);
                -webkit-transform: rotate(3255deg);
                -moz-transform: rotate(3255deg);
                -o-transform: rotate(3255deg);
                -ms-transform: rotate(3255deg);
                transition: all 5s;
              }
            }
            .confirm {
              position: absolute;
              bottom: 1rem;
              left: 50%;
              margin-left: -2.5rem;
              width: 5rem;
              height: 2rem;
              line-height: 2rem;
              text-align: center;
              font-size: 0.9rem;
              background-color: #ff5f8b;
              color: #fff;
              border-radius: 0.3rem;
              z-index: 1000;
            }
          }
        }
      }
      .draw-record {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 4500;
        .box-dark {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(0, 0, 0, 0.6);
          z-index: -1;
        }
        .draw-record-close {
          position: absolute;
          top: 50%;
          right: 10%;
          margin-top: -13rem;
          width: 2rem;
          height: 2rem;
          img {
            width: 100%;
            height: 100%;
          }
        }
        .draw-record-box {
          position: absolute;
          top: 50%;
          left: 50%;
          margin-top: -11rem;
          margin-left: -9rem;
          width: 18rem;
          height: 17rem;
          z-index: 3;
          background-image: url('http://sucai.suoluomei.cn/sucai_zs/images/20190226142834-list-bg.png');
          background-origin: center;
          background-size: 100% 100%;
          background-repeat: no-repeat;
          .record-list,
          .winPrize,
          .noPrize {
            position: absolute;
            bottom: 11.5%;
            left: 10%;
            width: 74%;
            height: 50%;
            h3 {
              width: 100%;
              font-weight: 500;
              font-size: 0.8rem;
              text-align: center;
              color: #fff;
            }
            ul {
              width: 100%;
              height: 7rem;
              overflow: scroll;
              li {
                display: inline-flex;
                display: -webkit-inline-flex;
                align-items: center;
                width: 100%;
                color: #fff;
                font-size: 0.9rem;
                font {
                  padding-right: 0.3rem;
                  font-size: 0.8rem;
                }
              }
            }
          }
          .winPrize {
            h3 {
              padding: 1rem 0;
              font-size: 1.1rem;
            }
            p {
              width: 100%;
              text-align: center;
              font-size: 0.8rem;
              color: #fff;
              span {
                font-size: 1rem;
              }
            }
          }
          .noPrize {
            display: -webkit-flex;
            display: flex;
            justify-content: center;
            -webkie-justify-content: center;
            align-items: flex-start;
            -webkie-align-items: flex-start;
            flex-wrap: wrap;
            -ms-flex-wrap: wrap;
            img {
              margin-top: 1rem;
              width: 3rem;
              height: 3rem;
            }
            h3 {
              text-align: center;
              font-size: 1rem;
            }
            p {
              margin-bottom: 1rem;
              text-align: center;
              font-size: 0.6rem;
              color: #fff;
            }
          }
        }
        .draw-record-confirm {
          position: absolute;
          top: 50%;
          left: 50%;
          margin-top: 8rem;
          margin-left: -5rem;
          width: 10rem;
          height: 3rem;
          line-height: 3rem;
          text-align: center;
          color: #fff;
          font-size: 1rem;
          background-image: url('http://sucai.suoluomei.cn/sucai_zs/images/20190226142834-yes.png');
          background-origin: center;
          background-size: 100% 100%;
          background-repeat: no-repeat;
        }
      }
    }
    .waring-alert {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 5000;
      width: 100%;
      height: 100%;
      .dark {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: -1;
      }
      .alert-bg {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-top: -6rem;
        margin-left: -9rem;
        width: 18rem;
        height: 12rem;
        background-image: url('http://sucai.suoluomei.cn/sucai_zs/images/20190227170624-alert-bg.png');
        background-size: 100% 100%;
        background-position: center;
        p {
          margin-top: 5rem;
          width: 100%;
          font-size: 0.9rem;
          color: #fff;
          text-align: center;
        }
        span {
          margin-left: 30%;
          margin-top: 2rem;
          padding: 0.2rem 0;
          display: block;
          width: 40%;
          font-size: 0.8rem;
          text-align: center;
          color: #333;
          background-color: #fff;
          border-radius: 0.5rem;
        }
      }
    }
    .loding {
      display: -webkit-flex;
      display: flex;
      justify-content: center;
      -webkie-justify-content: center;
      align-items: center;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
  }
</style>
